package com.main;
import javax.swing.JFrame;

import com.component.GetNewGroup;
import com.component.LogingFrame;
import com.data.Data;
import com.db.service.GroupServer;
import com.db.service.UserServer;
import com.db.sevent.UserEvent;
import com.db.sevent.WorkEvent;
import com.view.P1;
import com.view.P2;
import com.view.P3;

import util.JDBCUtiles;

public class RunFrame extends JFrame {
	private static final long serialVersionUID = 1L;
	public static RunFrame instance = new RunFrame();
	public RunFrame() {
		initFrame();
	}
	private void initFrame() {
		setTitle(Data.config.frameTitle);
		int WIDTH = Data.config.PanelW1 + Data.config.PanelW2 +Data.config.PanelW3+15;
		int HEIGHT = Data.config.HEIGHT+35;
		setSize(WIDTH,HEIGHT);
		setLayout(null);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		initData();
		add(P1.instance);add(P2.instance);add(P3.instance);
		setTitle("作业收集小精灵  开发团队：195101 客服QQ：2810201146 负责人：邹洋");
		setVisible(false);
	}
	private void initData() {
		LogingFrame.getInstance().setVisible(true);
		JDBCUtiles.testConnection();
//		new UserEvent().login();
	}
	public static void main(String[] args) {
		RunFrame.instance.setVisible(false);
		
	}
}
